Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

drainer: Log version info before other logs, fix #242 #638

Merged
merged 1 commit into from
Jun 18, 2019

Conversation

suzaku
Copy link
Contributor

@suzaku suzaku commented Jun 18, 2019

What problem does this PR solve?

Fix issue #242.

Make sure users can see which version of drainer they are using easily,
even when it fails to start because of misconfiguration.

What is changed and how it works?

Log version info when drainer is started.

Check List

Tests

  • Manual test
    Added an invalid zookeeper-addrs to drainer.toml and make sure that
    the version info was still outputed.

Code changes

Side effects

Related changes

So that users can easily see which version of drainer is running
when it fails to start.
@suzaku
Copy link
Contributor Author

suzaku commented Jun 18, 2019

/run-all-tests

Copy link
Contributor

@july2993 july2993 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link
Contributor

@kennytm kennytm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lgtm

@july2993 july2993 merged commit 62c5a9e into pingcap:master Jun 18, 2019
@suzaku suzaku deleted the fix-242 branch June 19, 2019 01:56
july2993 added a commit that referenced this pull request Jun 21, 2019
july2993 added a commit that referenced this pull request Jun 26, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants